import request from '../mockRequest.js'
// 获取是数据
export function getBooksData (params?: any) {
  return request({
    url: 'api/bookdata',
    method: 'get',
    params
  })
}
// 编辑
export function changeBooksData (data: any) {
  return request({
    url: 'api/bookdata',
    method: 'put',
    data
  })
}

// 删除
export function deleteBooksData (data: any) {
  return request({
    url: 'api/delbookdata',
    method: 'post',
    data
  })
}
// 新增
export function addBooksData (data: any) {
  return request({
    url: 'api/bookdata',
    method: 'post',
    data
  })
}
